import Defines

class Room():

    def __init__(self, X_, Y_):
    	self.positionX = X_
    	self.positionY = Y_
    	self.width = Defines.CELLWIDTH
    	self.height = Defines.CELLHEIGHT
    	self.type = Defines.RoomType.EMPTY

        if self.positionX == 3:
            self.type = Defines.RoomType.SHAFT
        if ((self.positionY == 0) and (self.positionX == 1)):
            self.type = Defines.RoomType.MED_BAYS
        if ((self.positionY == 0) and (self.positionX == 2)):
            self.type = Defines.RoomType.BARRACKS
        if ((self.positionY == 0) and (self.positionX == 4)):
            self.type = Defines.RoomType.MONEY
        if ((self.positionY == 0) and (self.positionX == 5)):
            self.type = Defines.RoomType.POWER
        if ((self.positionY == 0) and (self.positionX == 6)):
            self.type = Defines.RoomType.POWER

    def generateResources(self):
    	for i in range (0, FLOORNUM):
    		for j in range(0, ROOMNUM):
    			if type == Defines.RoomType.MONEY:
    				TotalMoneyBuildings += 1
    			elif type == Defines.RoomType.SCIENCE:
    				TotalScienceBuildings += 1
    			elif type == Defines.RoomType.POWER:
    				TotalPowerBuildings += 1
    			elif type == Defines.RoomType.MED_BAYS:
    				TotalMed_baysBuildings += 1
    			elif type == DefinesRoomType.EMPTY:
    				TotalEmptyBuildings += 1
    			elif type == DefinesRoomType.SHAFT:
    				TotalShafage += 1